package com.jintian.smart.kernel.core.annotation.flow;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface FlowActionMoment {

    public enum Moment {
        before, after;
    }

    /**
     * name of com.jintian.smart.flow.FlowAction。如果未空，监听所有操作
     *
     * @return
     */
    String action() default "";

    /**
     * 默认监听动作执行之后
     *
     * @return
     */
    Moment[] moment() default {Moment.after};

}
